const isDevDebug = true;
const proxyType = 'dotnet';
const backendHostUrl='http://172.16.15.209:5500/'; //照片测试
const gaode_weather_url= 'https://restapi.amap.com'  //天气
let BASE_HOST = 'http://172.16.15.202';
BASE_HOST = isDevDebug ? BASE_HOST : window.location.protocol + '//' + window.location.hostname;
const BASE_PORT = '5500';
const BASE_AGS_PORT = '6080';
const BASE_PATH = 'swghgis';
// 数据接口地址
const BASE_DATASERVER_APIURL = `${BASE_HOST}:${BASE_PORT}/${BASE_PATH}/webapi/do?o=execute_II&method=get&interface=`;
// 数据管理模块
const BASE_DATAMANAGER_URL = `${BASE_HOST}:${BASE_PORT}/${BASE_PATH}/H5Client/index.jsp`;
// ArcGIS 地图服务地址
const BASE_ARCGIS_SERVER_URL = `${BASE_HOST}:${BASE_AGS_PORT}/arcgis/rest/services/`;
console.log('BASE_ARCGIS_SERVER_URL:',BASE_ARCGIS_SERVER_URL);
// ArcGIS 代理服务地址
const ArcGISProxyUrl = proxyType === 'java'
	? `${BASE_HOST}:${BASE_PORT}/proxy/proxy.jsp?`
	: `${BASE_HOST}:5001/proxy/proxy.ashx?`;
// ArcGIS Token 获取地址
const ArcGISTokenUrl = `${BASE_HOST}:${BASE_AGS_PORT}/arcgis/tokens/generateToken`;



const ArcGISTokenUrl_test='http://119.91.218.101:6080/arcgis/tokens/generateToken'

//地图属性
const glbelmap={
  //全局默认视角
  global_view:{"lat":30.577753,"lng":114.61818,"alt":69627.7,"heading":0.2,"pitch":-53.8},
  //省级默认视角
  global_view_sheng:{"lat":30.543189,"lng":112.555589,"alt":1266379.2,"heading":6.7,"pitch":-89.6},
  //都市圈默认视角
  global_view_dsq:{"lat":29.100711,"lng":114.481193,"alt":258828.1,"heading":357.9,"pitch":-59.5},
  //市级默认视角
  global_view_shi:{"lat":28.702008,"lng":115.611727,"alt":441800.9,"heading":354.9,"pitch":-65.4},
  //县级默认视角
  global_view_xian:{"lat":30.581446,"lng":114.596574,"alt":181255.4,"heading":4,"pitch":-70.3},
    //园区默认视角
  global_view_yq:{"lat":30.951864,"lng":114.595275,"alt":21706.1,"heading":358.9,"pitch":-64},

  //poi点查询url
  poiSearchUrl:'http://119.91.218.101:6080/arcgis/rest/services/ha/003/MapServer/0'
}
